import java.util.Arrays;
import java.sql.Array;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-03-29
 * Time: 14:59
 */
class Student {
    private String name;
    private int age;
    public static String classroom = "2105";

    //构造方法
    public Student() {
        System.out.println("我是一个构造方法！！！");
    }
    //实例代码块
    {
        this.name ="厚积薄发";
        this.age = 18;
        System.out.println("我是一个实例代码块！！！");
    }
    //静态代码块
    static
    {
        classroom="2106";
        System.out.println("我是一个静态代码块！！！");
    }
    static
    {
        classroom="2107";
        System.out.println("我是一个静态代码块！！！");
    }
}


public class TestDemo {

    static int cnt = 6;
    static{
        cnt += 9;
    }
    public static void main(String[] args){
        System.out.println("cnt="+ cnt);
    }
    static{
        cnt /=3;
    };
}